import request from '@/utils/request'

export default {
  //工厂管理-列表
  factoryList(data) {
    return request({
      url: "/business/factory/list",
      method: "get",
      data,
    });
  },

  //工厂管理-列表(不分页)
  factoryAllList(data) {
    return request({
      url: "/business/factory/queryAllList",
      method: "get",
      data,
    });
  },

  //工厂管理-新增
  factoryAdd(data) {
    return request({
      url: "/business/factory/add",
      method: "post",
      data,
    });
  },

  //工厂管理-删除
  factoryRemove(data) {
    return request({
      url: "/business/factory/remove",
      method: "post",
      data,
    });
  },

  //工厂管理-编辑
  factoryEdit(data) {
    return request({
      url: "/business/factory/edit",
      method: "post",
      data,
    });
  },


  //仓库管理-列表
  storeList(data) {
    return request({
      url: "/business/store/list",
      method: "get",
      data,
    });
  },

  //仓库管理-列表(不分页)
  storeAllList(data) {
    return request({
      url: "/business/store/queryAllList",
      method: "get",
      data,
    });
  },

  //仓库管理-新增
  storeAdd(data) {
    return request({
      url: "/business/store/add",
      method: "post",
      data,
    });
  },

  //仓库管理-详情
  storeDetail(data) {
    return request({
      url: "/business/store/getDetail",
      method: "get",
      data,
    });
  },

  //仓库管理-删除
  storeRemove(data) {
    return request({
      url: "/business/store/remove",
      method: "post",
      data,
    });
  },

  //仓库管理-编辑
  storeEdit(data) {
    return request({
      url: "/business/store/edit",
      method: "post",
      data,
    });
  },

  //库区管理-列表
  storeRegionList(data) {
    return request({
      url: "/business/storeRegion/list",
      method: "get",
      data,
    });
  },

  //库区管理-列表(不分页)
  storeRegionAllList(data) {
    return request({
      url: "/business/storeRegion/queryAllList",
      method: "get",
      data,
    });
  },

  //库区管理-新增
  storeRegionAdd(data) {
    return request({
      url: "/business/storeRegion/add",
      method: "post",
      data,
    });
  },

  //库区管理-详情
  storeRegionDetail(data) {
    return request({
      url: "/business/storeRegion/getDetail",
      method: "get",
      data,
    });
  },

  //库区管理-删除
  storeRegionRemove(data) {
    return request({
      url: "/business/storeRegion/remove",
      method: "post",
      data,
    });
  },

  //库区管理-编辑
  storeRegionEdit(data) {
    return request({
      url: "/business/storeRegion/edit",
      method: "post",
      data,
    });
  },

  //库位管理-列表
  storeLocationList(data) {
    return request({
      url: "/business/storeLocation/list",
      method: "get",
      data,
    });
  },

  //库位管理-新增
  storeLocationAdd(data) {
    return request({
      url: "/business/storeLocation/add",
      method: "post",
      data,
    });
  },

  //库位管理-详情
  storeLocationDetail(data) {
    return request({
      url: "/business/storeLocation/getDetail",
      method: "get",
      data,
    });
  },

  //库位管理-删除
  storeLocationRemove(data) {
    return request({
      url: "/business/storeLocation/remove",
      method: "post",
      data,
    });
  },

  //库位管理-编辑
  storeLocationEdit(data) {
    return request({
      url: "/business/storeLocation/edit",
      method: "post",
      data,
    });
  },

  //库位管理-不分页
  storeLocationQuery(data) {
    return request({
      url: "/business/storeLocation/queryAllList",
      method: "get",
      data,
    });
  },

  //托盘管理-列表
  trayList(data) {
    return request({
      url: "/business/tray/list",
      method: "get",
      data,
    });
  },

  //托盘管理-不分页
  trayQuery(data) {
    return request({
      url: "/business/tray/queryAllList",
      method: "get",
      data,
    });
  },

  //托盘管理-新增
  trayAdd(data) {
    return request({
      url: "/business/tray/add",
      method: "post",
      data,
    });
  },

  //库位管理-删除
  trayRemove(data) {
    return request({
      url: "/business/tray/remove",
      method: "post",
      data,
    });
  },

  //库位管理-编辑
  trayEdit(data) {
    return request({
      url: "/business/tray/edit",
      method: "post",
      data,
    });
  },

  //供应商管理 - 列表
  supplierList(data) {
    return request({
      url: "/business/supplier/list",
      method: "get",
      data,
    });
  },

  //供应商管理 - 不分页
  supplierQuery(data) {
    return request({
      url: "/business/supplier/query",
      method: "get",
      data,
    });
  },

  //供应商管理 - 新增
  supplierAdd(data) {
    return request({
      url: "/business/supplier",
      method: "post",
      data,
    });
  },

  //供应商管理 - 编辑
  supplierEdit(data) {
    return request({
      url: "/business/supplier",
      method: "put",
      data,
    });
  },

  //供应商管理 - 删除
  supplierDel(ids) {
    return request({
      url: `/business/supplier/${ids}`,
      method: "delete",
    });
  },

  //供应商管理 - 详情
  supplierDetails(id) {
    return request({
      url: `/business/supplier/${id}`,
      method: "get",
    });
  },

  //供应商管理 - 编码是否可用
  supplierCheckSn(data) {
    return request({
      url: `/business/supplier/checkSn`,
      method: "post",
      data
    });
  },

  //客户管理 - 列表
  customerList(data) {
    return request({
      url: "/business/customer/list",
      method: "get",
      data,
    });
  },

  //客户管理 - 不分页
  customerQuery(data) {
    return request({
      url: "/business/customer/query",
      method: "get",
      data,
    });
  },

  //客户管理 - 新增
  customerAdd(data) {
    return request({
      url: "/business/customer",
      method: "post",
      data,
    });
  },

  //客户管理 - 编辑
  customerEdit(data) {
    return request({
      url: "/business/customer",
      method: "put",
      data,
    });
  },

  //客户管理 - 删除
  customerDel(ids) {
    return request({
      url: `/business/customer/${ids}`,
      method: "delete",
    });
  },

  //客户管理 - 详情
  customerDetails(id) {
    return request({
      url: `/business/customer/${id}`,
      method: "get",
    });
  },

  //客户管理 - 编码是否可用
  customerCheckSn(data) {
    return request({
      url: `/business/customer/checkSn`,
      method: "post",
      data
    });
  },

  //货物管理-列表
  cargoList(data) {
    return request({
      url: "/business/cargo/list",
      method: "get",
      data,
    });
  },

  //货物管理-不分页
  cargoQuery(data) {
    return request({
      url: "/business/cargo/query",
      method: "get",
      data,
    });
  },

  //货物管理 - 新增
  cargoAdd(data) {
    return request({
      url: "/business/cargo",
      method: "post",
      data,
    });
  },

  //货物管理 - 编辑
  cargoEdit(data) {
    return request({
      url: "/business/cargo",
      method: "put",
      data,
    });
  },

  //货物管理 - 删除
  cargoDel(ids) {
    return request({
      url: `/business/cargo/${ids}`,
      method: "delete",
    });
  },

  //货物管理 - 详情
  cargoDetails(id) {
    return request({
      url: `/business/cargo/${id}`,
      method: "get",
    });
  },

  //货物管理 - 编码是否可用
  cargoCheckSn(data) {
    return request({
      url: `/business/cargo/checkSn`,
      method: "post",
      data
    });
  },

  //单位管理-列表
  unitList(data) {
    return request({
      url: "/business/unit/list",
      method: "get",
      data,
    });
  },

  //单位管理 - 新增
  unitAdd(data) {
    return request({
      url: "/business/unit",
      method: "post",
      data,
    });
  },

  //单位管理 - 编辑
  unitEdit(data) {
    return request({
      url: "/business/unit",
      method: "put",
      data,
    });
  },

  //单位管理 - 删除
  unitDel(ids) {
    return request({
      url: `/business/unit/${ids}`,
      method: "delete",
    });
  },

  //单位管理 - 详情
  unitDetails(id) {
    return request({
      url: `/business/unit/${id}`,
      method: "get",
    });
  },

  //单位管理 - 检查名称是否可用
  unitCheckName(data) {
    return request({
      url: `/business/unit/checkName`,
      method: "post",
      data
    });
  },

  //单位不分页
  unitQuery(data) {
    return request({
      url: `/business/unit/query`,
      method: "get",
      data
    });
  },

  //入库计划-列表
  inPlanList(data) {
    return request({
      url: `/business/inPlan/list`,
      method: "get",
      data
    });
  },

  //入库计划-新增
  inPlanAdd(data) {
    return request({
      url: `/business/inPlan/add`,
      method: "post",
      data
    });
  },

  //入库计划-编辑
  inPlanEdit(data) {
    return request({
      url: `/business/inPlan/edit`,
      method: "post",
      data
    });
  },

  //入库计划-取消
  inPlanCancel(data) {
    return request({
      url: `/business/inPlan/cancel`,
      method: "post",
      data
    });
  },

  //入库计划-详情
  inPlanDetail(data) {
    return request({
      url: `/business/inPlan/getDetail`,
      method: "get",
      data
    });
  },

  //入库计划详情-列表
  inPlanDetailList(data) {
    return request({
      url: `/business/inPlanDetail/list`,
      method: "get",
      data
    });
  },

  //入库计划详情-不分页
  inPlanDetailQuery(data) {
    return request({
      url: `/business/inPlanDetail/queryAllList`,
      method: "get",
      data
    });
  },

  //入库计划详情-新增
  inPlanDetailAdd(data) {
    return request({
      url: `/business/inPlanDetail/add`,
      method: "post",
      data
    });
  },

  //入库计划详情-编辑
  inPlanDetailEdit(data) {
    return request({
      url: `/business/inPlanDetail/edit`,
      method: "post",
      data
    });
  },

  //入库计划详情-删除
  inPlanDetailRemove(data) {
    return request({
      url: `/business/inPlanDetail/remove`,
      method: "post",
      data
    });
  },

  //入库单列表
  inWarehousList(data) {
    return request({
      url: `/business/inWarehous/list`,
      method: "get",
      data
    });
  },

  //入库单详情
  inWarehousDetail(data) {
    return request({
      url: `/business/inWarehous/getDetail`,
      method: "get",
      data
    });
  },

  //入库单详情-列表
  inWarehousDetailList(data) {
    return request({
      url: `/business/inWarehousDetail/list`,
      method: "get",
      data
    });
  },

  //入库详情-不分页
  inWarehousDetailQuery(data) {
    return request({
      url: `/business/inWarehousDetail/queryAllList`,
      method: "get",
      data
    });
  },

  //入库单详情-新增
  inWarehousDetailAdd(data) {
    return request({
      url: `/business/inWarehousDetail/add`,
      method: "post",
      data
    });
  },

  //入库单详情-编辑
  inWarehousDetailEdit(data) {
    return request({
      url: `/business/inWarehousDetail/edit`,
      method: "post",
      data
    });
  },

  //入库单详情-删除
  inWarehousDetailRemove(data) {
    return request({
      url: `/business/inWarehousDetail/remove`,
      method: "post",
      data
    });
  },

  //出库计划单-列表
  deliveryPlanList(data) {
    return request({
      url: `/system/deliveryPlan/list`,
      method: "get",
      data
    });
  },

  //出库计划单-新增
  deliveryPlanAdd(data) {
    return request({
      url: `/system/deliveryPlan`,
      method: "post",
      data
    });
  },

  //出库计划单-编辑
  deliveryPlanPut(data) {
    return request({
      url: `/system/deliveryPlan`,
      method: "put",
      data
    });
  },

  //出库计划单-详情
  deliveryPlanDetail(id) {
    return request({
      url: `/system/deliveryPlan/${id}`,
      method: "get",
    });
  },

  //出库计划单-取消
  deliveryPlanCancel(data) {
    return request({
      url: `/system/deliveryPlan/cancel`,
      method: "post",
      data
    });
  },

  //出库计划单-货物列表
  deliveryPlanDetailList(data) {
    return request({
      url: `/business/deliveryPlanDetail/list`,
      method: "get",
      data
    });
  },

  //出库计划单-货物新增
  deliveryPlanDetailAdd(data) {
    return request({
      url: `/business/deliveryPlanDetail`,
      method: "post",
      data
    });
  },

  //出库计划单-货物编辑
  deliveryPlanDetailPut(data) {
    return request({
      url: `/business/deliveryPlanDetail`,
      method: "put",
      data
    });
  },

  //出库单货物-不分页
  deliveryRecordDetailQuery(data) {
    return request({
      url: `/business/deliveryRecordDetail/query`,
      method: "get",
    });
  },

  //出库计划单-货物删除
  deliveryPlanDetailDel(data) {
    return request({
      url: `/business/deliveryPlanDetail/${data}`,
      method: "delete",
    });
  },

  //出库单-列表
  deliveryRecordList(data) {
    return request({
      url: `/business/deliveryRecord/list`,
      method: "get",
      data
    });
  },

  //出库单-修改
  deliveryRecordPut(data) {
    return request({
      url: `/business/deliveryRecord`,
      method: "put",
      data
    });
  },

  //出库单-详情
  deliveryRecordDetails(id) {
    return request({
      url: `/business/deliveryRecord/${id}`,
      method: "get",
    });
  },

  //出库单详情-列表
  deliveryRecordDetailList(data) {
    return request({
      url: `/business/deliveryRecordDetail/list`,
      method: "get",
      data
    });
  },

  //出库单详情-新增
  deliveryRecordDetailAdd(data) {
    return request({
      url: `/business/deliveryRecordDetail`,
      method: "post",
      data
    });
  },

  //出库单详情-删除
  deliveryRecordDetailDel(ids) {
    return request({
      url: `/business/deliveryRecordDetail/${ids}`,
      method: "delete",
    });
  },

  //出库单详情-编辑
  deliveryRecordDetailPut(data) {
    return request({
      url: `/business/deliveryRecordDetail`,
      method: "put",
      data
    });
  },

  //待审核 - 列表
  inWarehousDetailProcessList(data) {
    return request({
      url: `/business/inWarehousDetail/queryProcessList`,
      method: "get",
      data
    });
  },

  //待审核 - 审核
  inWarehousDetailProcessAction(data) {
    return request({
      url: `/business/inWarehousDetail/process`,
      method: "post",
      data
    });
  },

  //调拨管理 - 列表
  transferList(data) {
    return request({
      url: `/business/transfer/list`,
      method: "get",
      data
    });
  },

  //调拨管理-不分页
  transferQuery(data) {
    return request({
      url: `/business/transfer/query`,
      method: "get",
      data
    });
  },

  //调拨管理 - 新增
  transferAdd(data) {
    return request({
      url: `/business/transfer/add`,
      method: "post",
      data
    });
  },

  //调拨管理 - 编辑
  transferEdit(data) {
    return request({
      url: `/business/transfer/edit`,
      method: "post",
      data
    });
  },

  //调拨管理详情 - 列表
  transferDetailList(data) {
    return request({
      url: `/business/transferDetail/list`,
      method: "get",
      data
    });
  },

  //调拨管理详情 - 不分页
  transferDetailQuery(data) {
    return request({
      url: `/business/transferDetail/query`,
      method: "get",
      data
    });
  },

  //调拨管理 - 查询货物
  queryTransferList(data) {
    return request({
      url: `/business/inWarehousDetail/queryTransferList`,
      method: "get",
      data
    });
  },

  //调拨管理 - 新增
  transferDetailAdd(data) {
    return request({
      url: `/business/transferDetail/add`,
      method: "post",
      data
    });
  },

  //调拨管理 - 编辑
  transferDetailEdit(data) {
    return request({
      url: `/business/transferDetail/edit`,
      method: "post",
      data
    });
  },

  //调拨管理 - 删除
  transferDetailDel(data) {
    return request({
      url: `/business/transferDetail/remove`,
      method: "post",
      data
    });
  },


  //盘点管理-列表
  inventoryPlanList(data) {
    return request({
      url: `/business/inventoryPlan/list`,
      method: "get",
      data
    });
  },

  //盘点管理-编辑
  inventoryPlanPut(data) {
    return request({
      url: `/business/inventoryPlan`,
      method: "put",
      data
    });
  },

  //盘点管理-新增
  inventoryPlanAdd(data) {
    return request({
      url: `/business/inventoryPlan`,
      method: "post",
      data
    });
  },

  //盘点管理-删除
  inventoryPlanDel(data) {
    return request({
      url: `/business/inventoryPlan/${data}`,
      method: "delete",
    });
  },

  //盘点管理-详情
  inventoryPlanDetails(data) {
    return request({
      url: `/business/inventoryPlan/${data}`,
      method: "get",
    });
  },

  //盘点管理-详情列表
  inventoryPlanDetailsList(data) {
    return request({
      url: `/business/inventoryPlanDetail/list`,
      method: "get",
    });
  },

  //盘点管理-详情新增
  inventoryPlanDetailsAdd(data) {
    return request({
      url: `/business/inventoryPlanDetail`,
      method: "post",
      data
    });
  },

  //盘点管理-详情编辑
  inventoryPlanDetailsPut(data) {
    return request({
      url: `/business/inventoryPlanDetail`,
      method: "put",
      data
    });
  },

  //盘点管理-详情删除
  inventoryPlanDetailsDel(data) {
    return request({
      url: `/business/inventoryPlanDetail/${data}`,
      method: "delete",
    });
  },

  //盘点任务-列表
  inventoryRecordList(data) {
    return request({
      url: `/business/inventoryRecord/list`,
      method: "get",
      data
    });
  },

  //盘点任务-详情
  inventoryRecordDetails(data) {
    return request({
      url: `/business/inventoryRecord/${data}`,
      method: "get",
    });
  },

  //查询商品库存列表接口
  queryStoreList() {
    return request({
      url: `/business/inWarehousDetail/queryStoreList`,
      method: "get",
    });
  },

  //库存查询
  statisticsStock(data) {
    return request({
      url: `/business/statistics/stock`,
      method: "get",
      data
    });
  },

  //入库查询
  statisticsWarehouse(data) {
    return request({
      url: `/business/statistics/warehouse`,
      method: "get",
      data
    });
  },

  //出库查询
  statisticsDelivery(data) {
    return request({
      url: `/business/statistics/delivery`,
      method: "get",
      data
    });
  },

  //库存预警
  stockWarning(data) {
    return request({
      url: `/business/statistics/stockWarning`,
      method: "get",
      data
    });
  },

  //过期预警
  queryValidityList(data) {
    return request({
      url: `/business/inWarehousDetail/queryValidityList`,
      method: "get",
      data
    });
  },

  //盘点任务-货物
  inventoryRecordDetailList(data) {
    return request({
      url: `/business/inventoryRecordDetail/list`,
      method: "get",
      data
    });
  },
}